package com.WebMentorPro.system.mapper;

import com.WebMentorPro.system.model.dto.expertReading.ExpertQueryByMyRequest;
import com.WebMentorPro.system.model.dto.expertReading.ExpertQueryRequest;
import com.WebMentorPro.system.model.entity.ExpertReading;
import com.WebMentorPro.system.model.vo.ExpertReadingVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author bianxiaoyao
* @description 针对表【expert_reading(大咖阅读表)】的数据库操作Mapper
* @createDate 2024-11-24 11:24:42
* @Entity generator.domain.ExpertReading
*/
public interface ExpertReadingMapper extends BaseMapper<ExpertReading> {

    List<ExpertReadingVO> getQuery(@Param("pageParam") Page<ExpertReadingVO> pageParam,
                                   @Param("expertQueryRequest") ExpertQueryRequest expertQueryRequest);

    List<ExpertReadingVO> getQueryByMyTeacher(@Param("pageParam") Page<ExpertReadingVO> pageParam,
                                       @Param("examQueryByMyRequest") ExpertQueryByMyRequest examQueryByMyRequest,
                                       @Param("teacherId") Long teacherId);

    List<ExpertReadingVO> getQueryByMyStudent(@Param("pageParam") Page<ExpertReadingVO> pageParam,
                                              @Param("examQueryByMyRequest") ExpertQueryByMyRequest examQueryByMyRequest,
                                              @Param("userId") Long userId);
}




